import rxAjax from '@/assets/js/ajax.js';

//os_dd_agent api接口
export const PlatFormApi = {};

PlatFormApi.baseUrl= '/api-user/user/org/osPlatformIntegrate';
//校验企业微信配置信息有效性
PlatFormApi.checkCanSave =function(parameter) {
  var url= PlatFormApi.baseUrl + '/checkCanSave';
  return rxAjax.postJson(url,parameter);
}

//获取当前租户的第三方集成配置
PlatFormApi.getByCurrentTenantId =function() {
    var url= PlatFormApi.baseUrl + '/getByCurrentTenantId';
    return rxAjax.get(url);
}

PlatFormApi.save= function(parameter) {
    var url= PlatFormApi.baseUrl + '/save';
    return rxAjax.postJson(url,parameter);
}

PlatFormApi.update= function(parameter) {
    var url= PlatFormApi.baseUrl + '/update';
    return rxAjax.postJson(url,parameter);
}


PlatFormApi.delete= function(parameter) {
    var url= PlatFormApi.baseUrl + '/del';
    return rxAjax.postUrl(url,parameter);
}



export  default PlatFormApi;

